body{
    /* 整体布局 */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* 左侧导航栏 */
.admin-sidebar {
    width: 250px;
    background: #001529;
    color: #fff;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
}

.admin-sidebar .admin-header {
    padding: 20px;
}

.logo-container {
    text-align: center;
}

.logo {
    width: 120px;
    height: auto;
}

/* 菜单样式 */
.admin-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-menu li {
    padding: 0;
}

.admin-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.admin-menu li a:hover {
    background: rgba(255,255,255,0.1);
}

.admin-menu li.active a {
    background: #1890ff;
}

.admin-menu li i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.badge {
    background: #ff4d4f;
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: auto;
}

/* 右侧主内容区 */
.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
}

/* 顶部栏 */
.admin-main .admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,21,41,0.08);
    margin-bottom: 20px;
}

.header-left {
    display: flex;
    align-items: center;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 20px;
    margin-right: 20px;
    cursor: pointer;
}

.breadcrumb {
    display: flex;
    align-items: center;
}

.breadcrumb i {
    margin: 0 10px;
    color: #999;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.admin-user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,21,41,0.08);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #fff;
    font-size: 24px;
}

.stat-info h3 {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.stat-value {
    margin: 5px 0;
    font-size: 24px;
    font-weight: bold;
}

.stat-desc {
    margin: 0;
    font-size: 12px;
    color: #999;
}

.up {
    color: #52c41a;
}

.down {
    color: #ff4d4f;
}

/* 最新订单表格 */
.dashboard-section {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,21,41,0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
    font-size: 18px;
}

.view-all {
    color: #1890ff;
    text-decoration: none;
}

.order-table table {
    width: 100%;
    border-collapse: collapse;
}

.order-table th,
.order-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status.pending {
    background: #fffbe6;
    color: #faad14;
}

.status.shipped {
    background: #f6ffed;
    color: #52c41a;
}

.btn-action {
    padding: 4px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

/* 数据图表区域 */
.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.chart-card {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,21,41,0.08);
}

.chart-card h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
}

.chart-container {
    display: flex;
    gap: 20px;
}

.chart-container-1 {
    flex: 1;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
}

.chart-container-1 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.booksInfo {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.booksPrice {
    color: #ff4d4f;
    font-weight: bold;
}
}